<?php
header('Content-type:text/html; Charset=utf-8');
defined('BASEPATH') OR exit('No direct script access allowed');
/*** 请填写以下配置信息 ***/
class Loginservice
{
    
    public function __construct()
    {
        $this->charset = 'utf8';
        session_start();
    }
    
    public function checkLogin()
    {
        if(empty($_SESSION['user_name']) || empty($_SESSION['user_id'])){
            return false;
        } else {
            return true;
        }
    }
    
}